<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2019/1/20
 * Time: 08:55
 */

namespace app\modules\visitor;


abstract class Role
{
    private $_name;

    public function __construct(string $name)
    {
        $this->_name = $name;
    }

    public function getName(): string
    {
        return sprintf('User %s', $this->_name);
    }

    abstract public function accept(RoleVisitorInterface $visitor);
}